import js from '@eslint/js';
import vuePlugin from 'eslint-plugin-vue';

export default [
  {
    files: ['**/*.js', '**/*.ts', '**/*.vue'],
    plugins: {
      vue: vuePlugin,
    },
    languageOptions: {
      parser: js.parser,
      ecmaVersion: 'latest',
    },
    rules: {
      'vue/multi-word-component-names': 0,
    },
    extends: [
      'eslint:recommended',
      'plugin:vue/vue3-essential',
      '@vue/eslint-config-typescript',
      '@vue/eslint-config-prettier/skip-formatting',
    ],
  },
];
